﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace XMLCharSheets.Systems.Pathfinder
{
    /// <summary>
    /// Interaction logic for LightSourceCreationWindow.xaml
    /// </summary>
    public partial class LightSourceCreationWindow : Window
    {
        public LightControlViewModel PriViewModel = new LightControlViewModel("Primary Radius");
        public LightControlViewModel SecViewModel = new LightControlViewModel("Secondary Radius");
        public LightSourceCreationWindow()
        {
            InitializeComponent();
            PriViewModel.UseSet = true;
            SecViewModel.UseStep = true;
            
            LightSourceControl_Primary.ViewModel = PriViewModel;
            LightSourceControl_Secondary.ViewModel = SecViewModel;

            LightControlViewModel.SetToPrimary(PriViewModel);
            LightControlViewModel.SetToSecondary(SecViewModel);
        }

        private void OK_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void Cancel_Click(object sender, RoutedEventArgs e)
        {
            PriViewModel = null;
            SecViewModel = null;
            this.Close();
        }
    }
}
